<ion-view view-title="订单详情" class="account" cache-view="false">
    <ion-content>
        <p class="padding orderStatus">
            <label>订单号:</label>
            {{orderObj.Id}}
            <label>状态:</label>
            <span class="price">{{orderObj.status}}</span>
        </p>
        <ion-list>
            <h4 class="">
                收货人信息</h4>
            <div class="item item-icon-right" >
                收货人：
                <input type="text" ng-model="orderObj.receiveInfo.ContactName" disabled/>
                <a ui-sref="receive">
                    <i class="icon ion-ios-arrow-right"></i>
                </a>


            </div>
            <div class="item item-icon-right" >
                手机号码：
                <input type="text" ng-model="orderObj.receiveInfo.Phone" disabled/>
                <a ui-sref="receive">
                    <i class="icon ion-ios-arrow-right"></i>
                </a>

            </div>
            <a class="item item-icon-right" on-tap="selectDatePicker()">
                收货日期：{{orderObj.date}}
                <i class="icon ion-calendar"></i>

            </a>
            <div class="item item-icon-right" >
                收货地址：
                <textarea disabled name="" ng-model="orderObj.receiveInfo.addrs" cols="35" rows="2"></textarea>

            </div>
        </ion-list>
        <h4 class="">
            商品清单
        </h4>
        <div class="summary">
            <ul>
                <li>
                    <span class="label">合计:</span>
                    <span class="price red">￥ {{orderObj.totalMoney}}</span>
                </li>
                <li>
                    <span class="label">信用余额:</span>
                    <span class="price">￥ {{credit}}</span>
                </li>
            </ul>
        </div>
        <ion-list>
            <ion-item ng-repeat="order in orderObj.orders track by $index">
                <div class="center">
                    <img ng-src="data:image/jpg;base64,{{order.Picture}}" alt=""/>
                </div>
                <div class="right">
                    <div class="product-name">
                        <div class="label">商品 :</div>
                        <div class="label-content">
                            {{order.ItemName}}
                        </div>
                    </div>
                    <div class="product-name">
                        <div class="label">单价 :</div>
                        <div class="label-content price red">
                            ￥{{order.Price}}
                        </div>
                    </div>
                    <div class="product-name">
                        <div class="label">数量 :</div>
                        <div class="label-content">
                            {{order.OrderByQtyPU}}
                        </div>
                    </div>
                  
                </div>
            </ion-item>
        </ion-list>
    </ion-content>
    <ion-footer-bar class="bar-stable" align-title="center">
        <button class="button button-block button-calm" on-tap="createOrder()">提交</button>
    </ion-footer-bar>
</ion-view>